{%include file="header.html"%}
<form action="{%$formAction%}" method="POST" {%if $is_validator%} id="adminform" onsubmit="return Validator.Validate(this)" {%/if%}>
<link rel="stylesheet" type="text/css" href="{%$smarty.const.BASEURI%}public/css/ui.datepicker.css"/>
<script language="javascript" src="{%$smarty.const.BASEURI%}public/js/ui.datetimepicker.js"></script>
<table border="0" class="search" cellspacing="0">
   	<tr>
    	<td class="searchlogo"></td>
        <td>{%$systemLang.operate%}<input type="text" class="text" style="width:88px" name="s[description]" value="{%$search.description%}"/></td>
     	<td>{%$systemLang.userName%}<input type="text" class="text" style="width:88px" name="s[user_truename]" value="{%$search.user_truename%}"/></td>
     	<td>URI:<input type="text" class="text" style="width:88px" name="s[query_uri]" value="{%$search.query_uri%}"/></td>
     	<td>{%$systemLang.startTime%}<input class="text" style="width:120px" type="text" name="s[start_time]" value="{%$search.start_time%}" id="cdate_s"/></td>
     	<td>{%$systemLang.endTime%}<input class="text" style="width:120px" type="text" name="s[end_time]" value="{%$search.end_time%}" id="cdate_e"/></td>
        <td><input type="button" class="button" name="ng" onclick="submitform('{%$smarty.const.BASEURI%}adminlog/index',false)" value="{%$systemLang.search%}" /></td>
    </tr>
</table>
<table width="100%" border="0" class="adminlist" cellspacing="0">
  <thead>
  <tr>
 	<th><input id="toggle" type="checkbox" value=""/></th>
    <th>{%$systemLang.operate%}</th>
    <th>{%$systemLang.userName%}</th>
    <th width="10%">URI</th>
    <th>{%$systemLang.time%}</th>
    <th>ip</th>
    <th>{%$systemLang.operate%}</th>
  </tr>
  </thead>
  <tbody>
 {%foreach from=$adminlogs item="row" key="a"%}
  <tr class="row0">
   <td><input name="select_id[]" type="checkbox" class="checkbox" id="cb{%$a++%}" value="{%$row.id%}" /></td>
    <td>{%$row.description|truncate:100%}&nbsp;</td>
    <td>{%$row.user_true_name%}&nbsp;</td>
    <td>{%$row.query_uri%}&nbsp;</td>
    <td>{%$row.time|date_format:"%Y-%m-%d %H:%M:%S"%}&nbsp;</td>
    <td>{%$row.client_ip%}&nbsp;</td>
   	<td>
        <a href="{%$smarty.const.BASEURI%}adminlog/delete/{%$row.id%}" {%$smarty.const.IS_DELETE%}>{%$systemLang.del%}</a>
    </td>
  </tr>
  {%/foreach%}
  </tbody>

  <tfoot>
  <tr>
    <td colspan="2">
    <input type="button"  value="{%$systemLang.del%}" onclick="select_control('{%$smarty.const.BASEURI%}adminlog/delete','{%$systemLang.confirmDel%}')" class="button"/>
    <input type="button"  value="{%$systemLang.clear%}" onclick="button_location('{%$smarty.const.BASEURI%}adminlog/delete_all',true)" class="button"/>
    </td>
	<td colspan="3">{%$page%}</td>
  </tr>
  </tfoot>
</table>
</form>
<script language="javascript">
	$('#cdate_s').datetimepicker({dateFormat:"yy-mm-dd hh:ii:00",timeFormat:""});
	$('#cdate_e').datetimepicker({dateFormat:"yy-mm-dd hh:ii:00",timeFormat:""});
</script>